package com.wpam.scrabble.mobile.messages;

import com.wpam.scrabble.mobile.MoveInfo;

public class MoveMessage extends Message {

	private static final long serialVersionUID = 1L;
	
	private MoveInfo currentMove_;
	private String lettersToChange_;
	boolean giveUp_;
	
	public MoveMessage(MoveInfo currentMove) {

		super(Message.MOVE);
		this.currentMove_ = currentMove;
		this.lettersToChange_ = null;
		this.giveUp_ = false;
	}
	
	public MoveMessage(String lettersToChange) {
		
		super(Message.MOVE);
		this.currentMove_ = null;
		this.lettersToChange_ = lettersToChange;
		this.giveUp_ = false;
	}

	public MoveMessage(boolean giveUp) {
		
		super(Message.MOVE);
		this.giveUp_ = giveUp;
		this.currentMove_ = null;
		this.lettersToChange_ = null;
	}
	
	public MoveInfo getMoveInfo() {
		return currentMove_;
	}

	public String getLettersToChange() {
		return lettersToChange_;
	}

	public boolean isGiveUp() {
		return giveUp_;
	}
}
